package com.example.xiaomengai.service.impl;

import com.example.xiaomengai.entity.Character;
import com.example.xiaomengai.entity.Relation;
import com.example.xiaomengai.mapper.CharacterMapper;
import com.example.xiaomengai.service.CharacterService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 功能
 * 作者：梦天
 * 日期：2025/4/27 10:07
 */
@Service
public class CharacterServiceImpl implements CharacterService {
    @Resource
    private CharacterMapper characterMapper;
    @Override
    public Character findByName(String name) {
        return characterMapper.findByName(name);
    }

//    @Override
//    public List<Relation> findRelationByRelation(String relation) {
//        return characterMapper.findRelationByRelation(relation);
//    }
}
